HTML <noscript> Tag

The HTML <noscript> tag is used to provide information displayed when a browser does not support or has disabled JavaScript in their browser.

Note: If the JavaScript is supported by your browser, the text inside the <noscript> tags will not rendered to the User Interface.

Example: Illustration of the basic example of HTML <noscript> tag.

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,
                                   initial-scale=1.0">
    <title>HTML JavaScript</title>
</head>
  
<body>
    <h1 id="gfg">w3wiki</h1>
    <h3>HTML JavaScript</h3>
  
    <script>
        const h1element = document
            .getElementById("gfg");
        h1element.style.color = "green";
    </script>
    <noscript>The browser you are using
        doestnot support JavaScript.
    </noscript>
    <p>If the JavaScript is supported by your browser the
        text inside the noscript tag will not be shown to you.
    </p>
</body>
  
</html>


Output:



HTML JavaScript

HTML JavaScript is the most popular programming language that helps to add interactivity and provides dynamic behavior. It is known as the client-side scripting language for web pages. JavaScript is used for various purposes, including DOM manipulation, asynchronous requests (AJAX), event handling, fetching external API, and creating interactive web applications.

Additionally, After ES6 JavaScript becomes more popular and provides various functionalities for creating dynamic web pages.

Similar Reads

Integrating JavaScript using HTML